Integrand size = 10, antiderivative size = 140 \[ \int \left (a+b \arctan \left (c x^2\right )\right ) \, dx=a x+b x \arctan \left (c x^2\right )+\frac {b \arctan \left (1-\sqrt {2} \sqrt {c} x\right )}{\sqrt {2} \sqrt {c}}-\frac {b \arctan \left (1+\sqrt {2} \sqrt {c} x\right )}{\sqrt {2} \sqrt {c}}-\frac {b \log \left (1-\sqrt {2} \sqrt {c} x+c x^2\right )}{2 \sqrt {2} \sqrt {c}}+\frac {b \log \left (1+\sqrt {2} \sqrt {c} x+c x^2\right )}{2 \sqrt {2} \sqrt {c}} \]
[Out]
Time = 0.08 (sec) , antiderivative size = 140, normalized size of antiderivative = 1.00, number of steps used = 11, number of rules used = 7, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.700, Rules used = {4930, 303, 1176, 631, 210, 1179, 642} \[ \int \left (a+b \arctan \left (c x^2\right )\right ) \, dx=a x+b x \arctan \left (c x^2\right )+\frac {b \arctan \left (1-\sqrt {2} \sqrt {c} x\right )}{\sqrt {2} \sqrt {c}}-\frac {b \arctan \left (\sqrt {2} \sqrt {c} x+1\right )}{\sqrt {2} \sqrt {c}}-\frac {b \log \left (c x^2-\sqrt {2} \sqrt {c} x+1\right )}{2 \sqrt {2} \sqrt {c}}+\frac {b \log \left (c x^2+\sqrt {2} \sqrt {c} x+1\right )}{2 \sqrt {2} \sqrt {c}} \]
[In]
[Out]
Rule 210
Rule 303
Rule 631
Rule 642
Rule 1176
Rule 1179
Rule 4930
Rubi steps \begin{align*} \text {integral}& = a x+b \int \arctan \left (c x^2\right ) \, dx \\ & = a x+b x \arctan \left (c x^2\right )-(2 b c) \int \frac {x^2}{1+c^2 x^4} \, dx \\ & = a x+b x \arctan \left (c x^2\right )+b \int \frac {1-c x^2}{1+c^2 x^4} \, dx-b \int \frac {1+c x^2}{1+c^2 x^4} \, dx \\ & = a x+b x \arctan \left (c x^2\right )-\frac {b \int \frac {1}{\frac {1}{c}-\frac {\sqrt {2} x}{\sqrt {c}}+x^2} \, dx}{2 c}-\frac {b \int \frac {1}{\frac {1}{c}+\frac {\sqrt {2} x}{\sqrt {c}}+x^2} \, dx}{2 c}-\frac {b \int \frac {\frac {\sqrt {2}}{\sqrt {c}}+2 x}{-\frac {1}{c}-\frac {\sqrt {2} x}{\sqrt {c}}-x^2} \, dx}{2 \sqrt {2} \sqrt {c}}-\frac {b \int \frac {\frac {\sqrt {2}}{\sqrt {c}}-2 x}{-\frac {1}{c}+\frac {\sqrt {2} x}{\sqrt {c}}-x^2} \, dx}{2 \sqrt {2} \sqrt {c}} \\ & = a x+b x \arctan \left (c x^2\right )-\frac {b \log \left (1-\sqrt {2} \sqrt {c} x+c x^2\right )}{2 \sqrt {2} \sqrt {c}}+\frac {b \log \left (1+\sqrt {2} \sqrt {c} x+c x^2\right )}{2 \sqrt {2} \sqrt {c}}-\frac {b \text {Subst}\left (\int \frac {1}{-1-x^2} \, dx,x,1-\sqrt {2} \sqrt {c} x\right )}{\sqrt {2} \sqrt {c}}+\frac {b \text {Subst}\left (\int \frac {1}{-1-x^2} \, dx,x,1+\sqrt {2} \sqrt {c} x\right )}{\sqrt {2} \sqrt {c}} \\ & = a x+b x \arctan \left (c x^2\right )+\frac {b \arctan \left (1-\sqrt {2} \sqrt {c} x\right )}{\sqrt {2} \sqrt {c}}-\frac {b \arctan \left (1+\sqrt {2} \sqrt {c} x\right )}{\sqrt {2} \sqrt {c}}-\frac {b \log \left (1-\sqrt {2} \sqrt {c} x+c x^2\right )}{2 \sqrt {2} \sqrt {c}}+\frac {b \log \left (1+\sqrt {2} \sqrt {c} x+c x^2\right )}{2 \sqrt {2} \sqrt {c}} \\ \end{align*}
Time = 0.06 (sec) , antiderivative size = 107, normalized size of antiderivative = 0.76 \[ \int \left (a+b \arctan \left (c x^2\right )\right ) \, dx=a x+b x \arctan \left (c x^2\right )-\frac {b \left (-2 \arctan \left (1-\sqrt {2} \sqrt {c} x\right )+2 \arctan \left (1+\sqrt {2} \sqrt {c} x\right )+\log \left (1-\sqrt {2} \sqrt {c} x+c x^2\right )-\log \left (1+\sqrt {2} \sqrt {c} x+c x^2\right )\right )}{2 \sqrt {2} \sqrt {c}} \]
[In]
[Out]
Time = 0.36 (sec) , antiderivative size = 103, normalized size of antiderivative = 0.74
method | result | size |
default | \(a x +b \left (x \arctan \left (c \,x^{2}\right )-\frac {\sqrt {2}\, \left (\ln \left (\frac {x^{2}-\left (\frac {1}{c^{2}}\right )^{\frac {1}{4}} x \sqrt {2}+\sqrt {\frac {1}{c^{2}}}}{x^{2}+\left (\frac {1}{c^{2}}\right )^{\frac {1}{4}} x \sqrt {2}+\sqrt {\frac {1}{c^{2}}}}\right )+2 \arctan \left (\frac {\sqrt {2}\, x}{\left (\frac {1}{c^{2}}\right )^{\frac {1}{4}}}+1\right )+2 \arctan \left (\frac {\sqrt {2}\, x}{\left (\frac {1}{c^{2}}\right )^{\frac {1}{4}}}-1\right )\right )}{4 c \left (\frac {1}{c^{2}}\right )^{\frac {1}{4}}}\right )\) | \(103\) |
parts | \(a x +b \left (x \arctan \left (c \,x^{2}\right )-\frac {\sqrt {2}\, \left (\ln \left (\frac {x^{2}-\left (\frac {1}{c^{2}}\right )^{\frac {1}{4}} x \sqrt {2}+\sqrt {\frac {1}{c^{2}}}}{x^{2}+\left (\frac {1}{c^{2}}\right )^{\frac {1}{4}} x \sqrt {2}+\sqrt {\frac {1}{c^{2}}}}\right )+2 \arctan \left (\frac {\sqrt {2}\, x}{\left (\frac {1}{c^{2}}\right )^{\frac {1}{4}}}+1\right )+2 \arctan \left (\frac {\sqrt {2}\, x}{\left (\frac {1}{c^{2}}\right )^{\frac {1}{4}}}-1\right )\right )}{4 c \left (\frac {1}{c^{2}}\right )^{\frac {1}{4}}}\right )\) | \(103\) |
[In]
[Out]
Result contains complex when optimal does not.
Time = 0.24 (sec) , antiderivative size = 140, normalized size of antiderivative = 1.00 \[ \int \left (a+b \arctan \left (c x^2\right )\right ) \, dx=b x \arctan \left (c x^{2}\right ) + a x - \frac {1}{2} \, \left (-\frac {b^{4}}{c^{2}}\right )^{\frac {1}{4}} \log \left (b^{3} x + \left (-\frac {b^{4}}{c^{2}}\right )^{\frac {3}{4}} c\right ) + \frac {1}{2} i \, \left (-\frac {b^{4}}{c^{2}}\right )^{\frac {1}{4}} \log \left (b^{3} x + i \, \left (-\frac {b^{4}}{c^{2}}\right )^{\frac {3}{4}} c\right ) - \frac {1}{2} i \, \left (-\frac {b^{4}}{c^{2}}\right )^{\frac {1}{4}} \log \left (b^{3} x - i \, \left (-\frac {b^{4}}{c^{2}}\right )^{\frac {3}{4}} c\right ) + \frac {1}{2} \, \left (-\frac {b^{4}}{c^{2}}\right )^{\frac {1}{4}} \log \left (b^{3} x - \left (-\frac {b^{4}}{c^{2}}\right )^{\frac {3}{4}} c\right ) \]
[In]
[Out]
Time = 4.34 (sec) , antiderivative size = 617, normalized size of antiderivative = 4.41 \[ \int \left (a+b \arctan \left (c x^2\right )\right ) \, dx=a x + b \left (\begin {cases} 0 & \text {for}\: c = 0 \\- \infty i x & \text {for}\: c = - \frac {i}{x^{2}} \\\infty i x & \text {for}\: c = \frac {i}{x^{2}} \\\frac {2 c^{5} x^{5} \left (- \frac {1}{c^{2}}\right )^{\frac {7}{4}} \operatorname {atan}{\left (c x^{2} \right )}}{2 c^{5} x^{4} \left (- \frac {1}{c^{2}}\right )^{\frac {7}{4}} + 2 c^{3} \left (- \frac {1}{c^{2}}\right )^{\frac {7}{4}}} - \frac {2 c^{4} x^{4} \left (- \frac {1}{c^{2}}\right )^{\frac {3}{2}} \log {\left (x - \sqrt [4]{- \frac {1}{c^{2}}} \right )}}{2 c^{5} x^{4} \left (- \frac {1}{c^{2}}\right )^{\frac {7}{4}} + 2 c^{3} \left (- \frac {1}{c^{2}}\right )^{\frac {7}{4}}} + \frac {c^{4} x^{4} \left (- \frac {1}{c^{2}}\right )^{\frac {3}{2}} \log {\left (x^{2} + \sqrt {- \frac {1}{c^{2}}} \right )}}{2 c^{5} x^{4} \left (- \frac {1}{c^{2}}\right )^{\frac {7}{4}} + 2 c^{3} \left (- \frac {1}{c^{2}}\right )^{\frac {7}{4}}} - \frac {2 c^{4} x^{4} \left (- \frac {1}{c^{2}}\right )^{\frac {3}{2}} \operatorname {atan}{\left (\frac {x}{\sqrt [4]{- \frac {1}{c^{2}}}} \right )}}{2 c^{5} x^{4} \left (- \frac {1}{c^{2}}\right )^{\frac {7}{4}} + 2 c^{3} \left (- \frac {1}{c^{2}}\right )^{\frac {7}{4}}} + \frac {2 c^{3} x \left (- \frac {1}{c^{2}}\right )^{\frac {7}{4}} \operatorname {atan}{\left (c x^{2} \right )}}{2 c^{5} x^{4} \left (- \frac {1}{c^{2}}\right )^{\frac {7}{4}} + 2 c^{3} \left (- \frac {1}{c^{2}}\right )^{\frac {7}{4}}} - \frac {2 c^{2} \left (- \frac {1}{c^{2}}\right )^{\frac {3}{2}} \log {\left (x - \sqrt [4]{- \frac {1}{c^{2}}} \right )}}{2 c^{5} x^{4} \left (- \frac {1}{c^{2}}\right )^{\frac {7}{4}} + 2 c^{3} \left (- \frac {1}{c^{2}}\right )^{\frac {7}{4}}} + \frac {c^{2} \left (- \frac {1}{c^{2}}\right )^{\frac {3}{2}} \log {\left (x^{2} + \sqrt {- \frac {1}{c^{2}}} \right )}}{2 c^{5} x^{4} \left (- \frac {1}{c^{2}}\right )^{\frac {7}{4}} + 2 c^{3} \left (- \frac {1}{c^{2}}\right )^{\frac {7}{4}}} - \frac {2 c^{2} \left (- \frac {1}{c^{2}}\right )^{\frac {3}{2}} \operatorname {atan}{\left (\frac {x}{\sqrt [4]{- \frac {1}{c^{2}}}} \right )}}{2 c^{5} x^{4} \left (- \frac {1}{c^{2}}\right )^{\frac {7}{4}} + 2 c^{3} \left (- \frac {1}{c^{2}}\right )^{\frac {7}{4}}} + \frac {2 c x^{4} \operatorname {atan}{\left (c x^{2} \right )}}{2 c^{5} x^{4} \left (- \frac {1}{c^{2}}\right )^{\frac {7}{4}} + 2 c^{3} \left (- \frac {1}{c^{2}}\right )^{\frac {7}{4}}} + \frac {2 \operatorname {atan}{\left (c x^{2} \right )}}{2 c^{6} x^{4} \left (- \frac {1}{c^{2}}\right )^{\frac {7}{4}} + 2 c^{4} \left (- \frac {1}{c^{2}}\right )^{\frac {7}{4}}} & \text {otherwise} \end {cases}\right ) \]
[In]
[Out]
none
Time = 0.29 (sec) , antiderivative size = 127, normalized size of antiderivative = 0.91 \[ \int \left (a+b \arctan \left (c x^2\right )\right ) \, dx=-\frac {1}{4} \, {\left (c {\left (\frac {2 \, \sqrt {2} \arctan \left (\frac {\sqrt {2} {\left (2 \, c x + \sqrt {2} \sqrt {c}\right )}}{2 \, \sqrt {c}}\right )}{c^{\frac {3}{2}}} + \frac {2 \, \sqrt {2} \arctan \left (\frac {\sqrt {2} {\left (2 \, c x - \sqrt {2} \sqrt {c}\right )}}{2 \, \sqrt {c}}\right )}{c^{\frac {3}{2}}} - \frac {\sqrt {2} \log \left (c x^{2} + \sqrt {2} \sqrt {c} x + 1\right )}{c^{\frac {3}{2}}} + \frac {\sqrt {2} \log \left (c x^{2} - \sqrt {2} \sqrt {c} x + 1\right )}{c^{\frac {3}{2}}}\right )} - 4 \, x \arctan \left (c x^{2}\right )\right )} b + a x \]
[In]
[Out]
none
Time = 0.28 (sec) , antiderivative size = 149, normalized size of antiderivative = 1.06 \[ \int \left (a+b \arctan \left (c x^2\right )\right ) \, dx=-\frac {1}{4} \, {\left (c {\left (\frac {2 \, \sqrt {2} \sqrt {{\left | c \right |}} \arctan \left (\frac {1}{2} \, \sqrt {2} {\left (2 \, x + \frac {\sqrt {2}}{\sqrt {{\left | c \right |}}}\right )} \sqrt {{\left | c \right |}}\right )}{c^{2}} + \frac {2 \, \sqrt {2} \sqrt {{\left | c \right |}} \arctan \left (\frac {1}{2} \, \sqrt {2} {\left (2 \, x - \frac {\sqrt {2}}{\sqrt {{\left | c \right |}}}\right )} \sqrt {{\left | c \right |}}\right )}{c^{2}} - \frac {\sqrt {2} \sqrt {{\left | c \right |}} \log \left (x^{2} + \frac {\sqrt {2} x}{\sqrt {{\left | c \right |}}} + \frac {1}{{\left | c \right |}}\right )}{c^{2}} + \frac {\sqrt {2} \sqrt {{\left | c \right |}} \log \left (x^{2} - \frac {\sqrt {2} x}{\sqrt {{\left | c \right |}}} + \frac {1}{{\left | c \right |}}\right )}{c^{2}}\right )} - 4 \, x \arctan \left (c x^{2}\right )\right )} b + a x \]
[In]
[Out]
Time = 0.45 (sec) , antiderivative size = 49, normalized size of antiderivative = 0.35 \[ \int \left (a+b \arctan \left (c x^2\right )\right ) \, dx=a\,x+b\,x\,\mathrm {atan}\left (c\,x^2\right )-\frac {{\left (-1\right )}^{1/4}\,b\,\mathrm {atan}\left ({\left (-1\right )}^{1/4}\,\sqrt {c}\,x\right )}{\sqrt {c}}-\frac {{\left (-1\right )}^{1/4}\,b\,\mathrm {atan}\left ({\left (-1\right )}^{1/4}\,\sqrt {c}\,x\,1{}\mathrm {i}\right )\,1{}\mathrm {i}}{\sqrt {c}} \]
[In]
[Out]